package com.lei.springbootpractice.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="emp")
public class EmpPojo {
    @TableId(value="empno",type= IdType.ASSIGN_ID)
    private String empno;
    @TableField(value="ename")
    private String ename;
    @TableField(value = "age")
    private int age;
    @TableField(value="deptno")
    private String deptno;
    @TableField(value="sal")
    private double sal;
    @TableField(value="gender")
    private String gender;
}
